package com.fzshang.shopping.api.controller;


import com.fzshang.shopping.commen.bean.Classification;
import com.fzshang.shopping.commen.bean.Sale;
import com.fzshang.shopping.commen.bean.layuiBean.ResultPage;
import com.fzshang.shopping.commen.bean.layuiBean.VoPage;
import com.fzshang.shopping.commen.controller.BaseController;
import com.fzshang.shopping.commen.entity.ApiResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 销售 前端控制器
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-12
 */
@Controller
@RequestMapping("admin/sale")
public class SaleController extends BaseController {

    @RequestMapping(value = "sale.html")
    public String sale(){
        return "admin/sale/sale";
    }


    /**
     * @param voPage
     * @return 后台查询
     */
    @RequestMapping(value = "selectMyPage",method = RequestMethod.GET)
    @ResponseBody
    public ResultPage<Sale> selectMyPage(VoPage voPage, Sale sale){
        return saleService.selectMyPage(voPage,sale);
    }




}
